<template>
  <div class="gh-tabItem3">
    <div class="gh-tabItem3-content">
      <div class="gh-tabItem3-content-vals">
        <div
          class="gh-tabItem3-content-vals-item"
          v-for="(item, index) of config.values"
          :key="index"
        >
          <div class="gh-tabItem3-content-vals-item-num">
            {{ item.value }}
          </div>
          {{ item.unit }}
        </div>
      </div>
      <div class="gh-tabItem3-content-name">
        <span
          v-for="(item, index) of config.name"
          :key="index"
        >
          {{ item }}</span
        >
      </div>
    </div>
    <img class="gh-tabItem3-icon" :src="config.icon" />
  </div>
</template>
<script>
export default {
  props: {
    config: {
      type: Object
    }
  }
}
</script>
<style lang="scss" scoped>
.gh-tabItem3 {
  width: 100%;
  background: url('~@/assets/img/overview/td-mid-bg.png')
    no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 30px;
  &-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    &-vals {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      margin-bottom: 5px;
      &-item {
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        font-size: 12px;
        line-height: 12px;
        font-weight: bold;
        color: #000000;
        &-num {
          font-size: 14px;
          line-height: 14px;
          font-family: DIN;
          font-weight: bold;
          color: #000000;
          margin: 0 3px 0 2px;
        }
      }
    }
    &-name {
      font-size: 12px;
      line-height: 12px;
      font-weight: bold;
      color: #4c565c;
      span {
        margin-right: 10px;
      }
    }
  }
  &-icon {
    width: 48px;
    height: 48px;
  }
}
</style>
